<h1>Listing tests</h1>

<table width="100%">
  <tr>
    <th>Name</th>
    <th>Build</th>
    <th>Timeout (seconds)</th>
    <th>Description</th>
    <th>VM</th>
  </tr>
<% for test_type in @test_types %>
  <tr>
    <td><%= test_type.name %></td>
    <td><%= test_type.build_type.title %></td>
    <td><%= test_type.timeout %></td>
    <td><%= test_type.description %></td>
    <td><%= test_type.virtual_machine %></td>
    <td align="center"><%= link_to 'Show', :action => 'show', :id => test_type %></td>
    <td align="center"><%= link_to 'Edit', :action => 'edit', :id => test_type %></td>
    <td align="center"><%= link_to 'Destroy', :action => 'delete', :id => test_type %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @test_type_pages.current.previous } if @test_type_pages.current.previous %>
<%= link_to 'Next page', { :page => @test_type_pages.current.next } if @test_type_pages.current.next %> 

<br />

<%= link_to 'New test type', :action => 'new' %>
